﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200019D RID: 413
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CellMonsterSelectInfo : IMessage<CellMonsterSelectInfo>, IMessage, IEquatable<CellMonsterSelectInfo>, IDeepCloneable<CellMonsterSelectInfo>, IBufferMessage
	{
		// Token: 0x1700056C RID: 1388
		// (get) Token: 0x06001294 RID: 4756 RVA: 0x000354B9 File Offset: 0x000336B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CellMonsterSelectInfo> Parser
		{
			get
			{
				return CellMonsterSelectInfo._parser;
			}
		}

		// Token: 0x1700056D RID: 1389
		// (get) Token: 0x06001295 RID: 4757 RVA: 0x000354C0 File Offset: 0x000336C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CellMonsterSelectInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700056E RID: 1390
		// (get) Token: 0x06001296 RID: 4758 RVA: 0x000354D2 File Offset: 0x000336D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CellMonsterSelectInfo.Descriptor;
			}
		}

		// Token: 0x06001297 RID: 4759 RVA: 0x000354D9 File Offset: 0x000336D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellMonsterSelectInfo()
		{
		}

		// Token: 0x06001298 RID: 4760 RVA: 0x000354F7 File Offset: 0x000336F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellMonsterSelectInfo(CellMonsterSelectInfo other) : this()
		{
			this.mazeBuffList_ = other.mazeBuffList_.Clone();
			this.selectDecayId_ = other.selectDecayId_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001299 RID: 4761 RVA: 0x00035532 File Offset: 0x00033732
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellMonsterSelectInfo Clone()
		{
			return new CellMonsterSelectInfo(this);
		}

		// Token: 0x1700056F RID: 1391
		// (get) Token: 0x0600129A RID: 4762 RVA: 0x0003553A File Offset: 0x0003373A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> MazeBuffList
		{
			get
			{
				return this.mazeBuffList_;
			}
		}

		// Token: 0x17000570 RID: 1392
		// (get) Token: 0x0600129B RID: 4763 RVA: 0x00035542 File Offset: 0x00033742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> SelectDecayId
		{
			get
			{
				return this.selectDecayId_;
			}
		}

		// Token: 0x0600129C RID: 4764 RVA: 0x0003554A File Offset: 0x0003374A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CellMonsterSelectInfo);
		}

		// Token: 0x0600129D RID: 4765 RVA: 0x00035558 File Offset: 0x00033758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CellMonsterSelectInfo other)
		{
			return other != null && (other == this || (this.mazeBuffList_.Equals(other.mazeBuffList_) && this.selectDecayId_.Equals(other.selectDecayId_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600129E RID: 4766 RVA: 0x000355AC File Offset: 0x000337AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.mazeBuffList_.GetHashCode();
			num ^= this.selectDecayId_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600129F RID: 4767 RVA: 0x000355EE File Offset: 0x000337EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060012A0 RID: 4768 RVA: 0x000355F6 File Offset: 0x000337F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060012A1 RID: 4769 RVA: 0x000355FF File Offset: 0x000337FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.selectDecayId_.WriteTo(ref output, CellMonsterSelectInfo._repeated_selectDecayId_codec);
			this.mazeBuffList_.WriteTo(ref output, CellMonsterSelectInfo._repeated_mazeBuffList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060012A2 RID: 4770 RVA: 0x00035638 File Offset: 0x00033838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.mazeBuffList_.CalculateSize(CellMonsterSelectInfo._repeated_mazeBuffList_codec);
			num += this.selectDecayId_.CalculateSize(CellMonsterSelectInfo._repeated_selectDecayId_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060012A3 RID: 4771 RVA: 0x00035684 File Offset: 0x00033884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CellMonsterSelectInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.mazeBuffList_.Add(other.mazeBuffList_);
			this.selectDecayId_.Add(other.selectDecayId_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060012A4 RID: 4772 RVA: 0x000356C3 File Offset: 0x000338C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060012A5 RID: 4773 RVA: 0x000356CC File Offset: 0x000338CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 58U)
				{
					if (num == 56U || num == 58U)
					{
						this.selectDecayId_.AddEntriesFrom(ref input, CellMonsterSelectInfo._repeated_selectDecayId_codec);
						continue;
					}
				}
				else if (num == 96U || num == 98U)
				{
					this.mazeBuffList_.AddEntriesFrom(ref input, CellMonsterSelectInfo._repeated_mazeBuffList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040007AF RID: 1967
		private static readonly MessageParser<CellMonsterSelectInfo> _parser = new MessageParser<CellMonsterSelectInfo>(() => new CellMonsterSelectInfo());

		// Token: 0x040007B0 RID: 1968
		private UnknownFieldSet _unknownFields;

		// Token: 0x040007B1 RID: 1969
		public const int MazeBuffListFieldNumber = 12;

		// Token: 0x040007B2 RID: 1970
		private static readonly FieldCodec<uint> _repeated_mazeBuffList_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x040007B3 RID: 1971
		private readonly RepeatedField<uint> mazeBuffList_ = new RepeatedField<uint>();

		// Token: 0x040007B4 RID: 1972
		public const int SelectDecayIdFieldNumber = 7;

		// Token: 0x040007B5 RID: 1973
		private static readonly FieldCodec<uint> _repeated_selectDecayId_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x040007B6 RID: 1974
		private readonly RepeatedField<uint> selectDecayId_ = new RepeatedField<uint>();
	}
}
